﻿using JDGLSys.Forms.Pages;
using JDGLSys.Forms.Pages.AdminFormPages;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;



namespace JDGLSys.Forms
{
    /// <summary>
    /// AdminForm.xaml 的交互逻辑
    /// </summary>
    public partial class AdminForm : Window
    {
        MinePage minePage=new MinePage();
        RoomsPage roomsPage = new RoomsPage();  
        UsersPage usersPage = new UsersPage(); 
        FoodsPage foodsPage = new FoodsPage();  

        public AdminForm()
        {
            InitializeComponent();
            //默认显示房间页面
            Frame.Content = roomsPage;
        }

        private void MineBtn_Click(object sender, RoutedEventArgs e)
        {
            Frame.Content = minePage;
        }

        private void RoomsBtn_Click(object sender, RoutedEventArgs e)
        {
            Frame.Content = roomsPage;
        }

        private void UsersBtn_Click(object sender, RoutedEventArgs e)
        {
            Frame.Content = usersPage;
        }

        private void FoodsBtn_Click(object sender, RoutedEventArgs e)
        {
            Frame.Content = foodsPage;
        }
    }
}
